//
//  JJShowDetailViewController.m
//  MyAnimations
//
//  Created by jxf on 15/12/27.
//  Copyright © 2015年 JJ.sevn. All rights reserved.
//

#import "JJShowDetailViewController.h"
#import "JJShowPictureViewController.h"
@interface JJShowDetailViewController ()

@end

@implementation JJShowDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    
    [self dismissViewControllerAnimated:NO completion:^{
        UIImageView *imageV = self.view.subviews.lastObject;

        __weak typeof(self) weakSelf = self;
        [weakSelf.mainVc showDetailViewDismisWithAnimation:^UIImageView *{
            return imageV;
        }];
    }];
}

@end
